from Attributes import Attributes

#
#   Class to hold information about an example to use for "learning"
#   Holds all the attributes in a dictionary
#
class CarData :
    def __init__(self, buying, maint, doors, persons, lug_boot, safety, attractiveness) :
        self.attributes = {}
        self.attributes["buying"] = Attributes("buying", buying)
        self.attributes["maint"] = Attributes("maint", maint)
        self.attributes["doors"] = Attributes("doors", doors)
        self.attributes["persons"] = Attributes("persons", persons)
        self.attributes["lug_boot"] = Attributes("lug_boot", lug_boot)
        self.attributes["safety"] = Attributes("safety", safety)
        self.attributes["attractiveness"] = Attributes("attractiveness", attractiveness)